Stop cursor blinking after a configurable timeout. (#353670, #352442,
authorMatthias Clasen <matthiasc@src.gnome.org>
Fri, 1 Sep 2006 02:14:30 +0000 (02:14 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 1 Sep 2006 02:14:30 +0000 (02:14 +0000)
commit5b0de8d59714f64f4e422eaeb4dddf1ab7d293cc
treef0d4f2d19ac0af87064b508f5a6a1429b19a0ec0
parenteda5e5c413bff1e6f6d9bd2a2fd556c7c1905682
Stop cursor blinking after a configurable timeout. (#353670, #352442,

Stop cursor blinking after a configurable timeout.
(#353670, #352442, Arjan van de Ven, Manu Cornet)

* gtk/gtksettings.c (gtk_settings_class_init): Add a
gtk-cursor-blink-timeout setting, which specifies the number
of seconds that the cursor should blink after a user interaction.
The default value is G_MAXINT to preserve the current behaviour.

* gtk/gtkentry.c (blink_cb): Stop blinking after blink-timeout
seconds.

* gtk/gtkentry.c (gtk_entry_completion_key_press)
(gtk_entry_button_press, gtk_entry_focus_in): Reset the
blink timer.

* gtk/gtktextview.c (blink_cb): Stop blinking after blink-timeout
seconds.

* gtk/gtktextview.c (gtk_text_view_key_press_event)
(gtk_text_view_button_press_event, gtk_text_view_focus_in_event):
Reset the blink timer.
ChangeLog
gtk/gtkentry.c
gtk/gtksettings.c
gtk/gtktextview.c